/*
 * ExternalInputRelay.h
 *
 *  Created on: 2012. 10. 16.
 *      Author: dalxx
 */
#include "PLCConfig.h"

#ifndef EXTERNALINPUTRELAY_H_
#define EXTERNALINPUTRELAY_H_

#include "Relay.h"

namespace PLCLib {

class RelayDI
{
	Relay* relayList;
	uint8_t* pinList;
	int numRelay;
public:

	RelayDI();
	~RelayDI();
	void init(int num_relay, Relay* relay_list);
	void removeAll();
	void calculateStatus();
	void setRelay(int index, uint8_t pin);


};

} /* namespace PLCLib */
#endif /* EXTERNALINPUTRELAY_H_ */
